-
Notifications
You must be signed in to change notification settings - Fork 7
Add Docker template example #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add a new template example showing how to create a sandbox with Docker installed. Uses the official get.docker.com script for installation and validates with hello-world during build.
8ddacb4 to
ccaa8ce
Compare
- Remove section headers - Use inline code comments instead of prose - Use sbx variable and sbx.kill() pattern - Simplify template name to 'docker'
- Add await to sbx.kill() in TypeScript - Use Sandbox.create() pattern in Python - Add brief description to Run containers section
Replace Note with inline prose explaining recommended specs (2 CPUs, 2 GB RAM) and bold warning about lower RAM causing OOM errors.
dobrac
approved these changes
Feb 5, 2026
docs/template/examples/docker.mdx
Outdated
|
|
||
| ## Install Docker | ||
|
|
||
| Use the official installation script from [get.docker.com](https://get.docker.com). The `hello-world` container validates the installation. |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
| Use the official installation script from [get.docker.com](https://get.docker.com). The `hello-world` container validates the installation. | |
| Use the official installation script from [get.docker.com](https://get.docker.com). The `hello-world` container run validates the installation. |
docs/template/examples/docker.mdx
Outdated
|
|
||
| ## Build the template | ||
|
|
||
| We recommend at least 2 CPUs and 2 GB of RAM for running Docker containers. **With lower RAM, your sandbox might run out of memory when working with containers.** |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
| We recommend at least 2 CPUs and 2 GB of RAM for running Docker containers. **With lower RAM, your sandbox might run out of memory when working with containers.** | |
| We recommend at least 2 CPUs and 2 GB of RAM for running Docker containers. **With lower RAM, your sandbox might run out of memory.** |
- Add "run" to hello-world validation sentence - Simplify RAM warning text
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add a new template example showing how to create a sandbox with Docker installed.
get.docker.comscript for installationhello-worldduring build